﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200002F RID: 47
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ActivateFarmElementScRsp : IMessage<ActivateFarmElementScRsp>, IMessage, IEquatable<ActivateFarmElementScRsp>, IDeepCloneable<ActivateFarmElementScRsp>, IBufferMessage
	{
		// Token: 0x17000087 RID: 135
		// (get) Token: 0x060001FA RID: 506 RVA: 0x00006BE9 File Offset: 0x00004DE9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ActivateFarmElementScRsp> Parser
		{
			get
			{
				return ActivateFarmElementScRsp._parser;
			}
		}

		// Token: 0x17000088 RID: 136
		// (get) Token: 0x060001FB RID: 507 RVA: 0x00006BF0 File Offset: 0x00004DF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ActivateFarmElementScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000089 RID: 137
		// (get) Token: 0x060001FC RID: 508 RVA: 0x00006C02 File Offset: 0x00004E02
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ActivateFarmElementScRsp.Descriptor;
			}
		}

		// Token: 0x060001FD RID: 509 RVA: 0x00006C09 File Offset: 0x00004E09
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ActivateFarmElementScRsp()
		{
		}

		// Token: 0x060001FE RID: 510 RVA: 0x00006C11 File Offset: 0x00004E11
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ActivateFarmElementScRsp(ActivateFarmElementScRsp other) : this()
		{
			this.worldLevel_ = other.worldLevel_;
			this.entityId_ = other.entityId_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060001FF RID: 511 RVA: 0x00006C4E File Offset: 0x00004E4E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ActivateFarmElementScRsp Clone()
		{
			return new ActivateFarmElementScRsp(this);
		}

		// Token: 0x1700008A RID: 138
		// (get) Token: 0x06000200 RID: 512 RVA: 0x00006C56 File Offset: 0x00004E56
		// (set) Token: 0x06000201 RID: 513 RVA: 0x00006C5E File Offset: 0x00004E5E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint WorldLevel
		{
			get
			{
				return this.worldLevel_;
			}
			set
			{
				this.worldLevel_ = value;
			}
		}

		// Token: 0x1700008B RID: 139
		// (get) Token: 0x06000202 RID: 514 RVA: 0x00006C67 File Offset: 0x00004E67
		// (set) Token: 0x06000203 RID: 515 RVA: 0x00006C6F File Offset: 0x00004E6F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EntityId
		{
			get
			{
				return this.entityId_;
			}
			set
			{
				this.entityId_ = value;
			}
		}

		// Token: 0x1700008C RID: 140
		// (get) Token: 0x06000204 RID: 516 RVA: 0x00006C78 File Offset: 0x00004E78
		// (set) Token: 0x06000205 RID: 517 RVA: 0x00006C80 File Offset: 0x00004E80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06000206 RID: 518 RVA: 0x00006C89 File Offset: 0x00004E89
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ActivateFarmElementScRsp);
		}

		// Token: 0x06000207 RID: 519 RVA: 0x00006C98 File Offset: 0x00004E98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ActivateFarmElementScRsp other)
		{
			return other != null && (other == this || (this.WorldLevel == other.WorldLevel && this.EntityId == other.EntityId && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06000208 RID: 520 RVA: 0x00006CF4 File Offset: 0x00004EF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.WorldLevel != 0U)
			{
				num ^= this.WorldLevel.GetHashCode();
			}
			if (this.EntityId != 0U)
			{
				num ^= this.EntityId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000209 RID: 521 RVA: 0x00006D65 File Offset: 0x00004F65
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600020A RID: 522 RVA: 0x00006D6D File Offset: 0x00004F6D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600020B RID: 523 RVA: 0x00006D78 File Offset: 0x00004F78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.EntityId != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.EntityId);
			}
			if (this.WorldLevel != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.WorldLevel);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600020C RID: 524 RVA: 0x00006DF0 File Offset: 0x00004FF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.WorldLevel != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.WorldLevel);
			}
			if (this.EntityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EntityId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600020D RID: 525 RVA: 0x00006E60 File Offset: 0x00005060
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ActivateFarmElementScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.WorldLevel != 0U)
			{
				this.WorldLevel = other.WorldLevel;
			}
			if (other.EntityId != 0U)
			{
				this.EntityId = other.EntityId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600020E RID: 526 RVA: 0x00006EC4 File Offset: 0x000050C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600020F RID: 527 RVA: 0x00006ED0 File Offset: 0x000050D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 80U)
				{
					if (num != 104U)
					{
						if (num != 112U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Retcode = input.ReadUInt32();
						}
					}
					else
					{
						this.WorldLevel = input.ReadUInt32();
					}
				}
				else
				{
					this.EntityId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040000A3 RID: 163
		private static readonly MessageParser<ActivateFarmElementScRsp> _parser = new MessageParser<ActivateFarmElementScRsp>(() => new ActivateFarmElementScRsp());

		// Token: 0x040000A4 RID: 164
		private UnknownFieldSet _unknownFields;

		// Token: 0x040000A5 RID: 165
		public const int WorldLevelFieldNumber = 13;

		// Token: 0x040000A6 RID: 166
		private uint worldLevel_;

		// Token: 0x040000A7 RID: 167
		public const int EntityIdFieldNumber = 10;

		// Token: 0x040000A8 RID: 168
		private uint entityId_;

		// Token: 0x040000A9 RID: 169
		public const int RetcodeFieldNumber = 14;

		// Token: 0x040000AA RID: 170
		private uint retcode_;
	}
}
